package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduComment;
import com.atguigu.eduservice.entity.vo.CommentInfoVo;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * <p>
 * 评论 服务类
 * </p>
 *
 * @author AIR
 * @since 2022-10-11
 */
public interface CommentService extends IService<EduComment> {

    //根据课程id 分页查询课程评论方法
    Map<String,Object> getCommentByCourseId(Long current, Long limit, String courseId);

    void insertComment(CommentInfoVo commentInfoVo, HttpServletRequest request);
}
